package com.tcj.myprogram.voiceschedule.db;

import android.content.ContentResolver;
import android.content.Context;

/**
 * DB unit is convert model to database, or database to model. It also control
 * Select, Update, Insert, Delete method with data.
 * 
 * @author tsengchienjung
 */
public class DbUnit {
	private static DbUnit dbUnit;
	private ContentResolver resolver;

	/**
	 * Get instance with DbUnit.
	 * 
	 * @param baseActivity
	 * @return
	 */
	public static DbUnit getInstance(Context context) {
		if (null == dbUnit) {
			dbUnit = new DbUnit(context);
		}
		return dbUnit;
	}

	private DbUnit(Context context) {
		resolver = context.getContentResolver();
	}

}